﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AnimationTool
{
    class CFrame
    {
        // duration of the frame
        float fDuration = 0.0f;
        public float FDuration
        {
            get { return fDuration; }
            set { fDuration = value; }
        }

        // x value of the anchor point
        int fanchorX = 0;
        public int FanchorX
        {
            get { return fanchorX; }
            set { fanchorX = value; }
        }

        int fanchorY = 0;
        public int FanchorY
        {
            get { return fanchorY; }
            set { fanchorY = value; }
        }

       public struct Rect
        {
          public int hitBoxX;

            public int HitBoxX
            {
                get { return hitBoxX; }
                set { hitBoxX = value; }
            }
            public int hitBoxY;

            public int HitBoxY
            {
                get { return hitBoxY; }
                set { hitBoxY = value; }
            }
           public int hitBoxWidth;

            public int HitBoxWidth
            {
                get { return hitBoxWidth; }
                set { hitBoxWidth = value; }
            }
            public int hitBoxLength;

            public int HitBoxLength
            {
                get { return hitBoxLength; }
                set { hitBoxLength = value; }
            }

            private string activeName;

            public string ActiveName
            {
                get { return activeName; }
                set { activeName = value; }
            }
            public override string ToString()
            {
                return activeName;
            }
        }

        public Rect sourceRect;

        public List<Rect> activeHitBoxList = new List<Rect>();

        public Rect passiveHitBox;

      //  public Rect floorHitBox;

        string strigger = "";

        public string Strigger
        {
            get { return strigger; }
            set { strigger = value; }
        }

        string Name = "frame";

        public string Name1
        {
            get { return Name; }
            set { Name = value; }
        }

        public override string ToString()
        {
            return Name;
        }

       

        





    }
}
